$OpenBSD: patch-mimetic_os_mmfile_cxx,v 1.1 2017/05/13 07:57:57 espie Exp $

Index: mimetic/os/mmfile.cxx
--- mimetic/os/mmfile.cxx.orig
+++ mimetic/os/mmfile.cxx
@@ -57,7 +57,7 @@ bool MMFile::open(int mode)
 bool MMFile::map()
 {
     m_beg = (char*) mmap(0, m_st.st_size, PROT_READ, MAP_SHARED,m_fd,0);
-    if(m_beg > 0)
+    if(m_beg != 0)
     {
         m_end = m_beg + m_st.st_size;
         #if HAVE_MADVISE
